import { createRouter, createWebHashHistory } from "vue-router";

import viewHome from "./views/home.vue";
import viewBodypix from "./views/bodypix.vue";

export const routes = [
	{
		path: "",
		name: "Home",
		meta: { id: 0 },
		component: viewBodypix,
	},
	{
		path: "/demo",
		name: "demo",
		meta: { id: 1 },
		component: viewHome,
	},
];

const router = createRouter({
	history: createWebHashHistory(),
	routes,
});

export default router;
